//数据
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const data = {
  path: '/data',
  name: 'data',
  component: Layout,
  redirect: '/data/report',
  key: 'data',
  meta: {
    title: '数据'
  },
  children: [{
    path: 'report',
    name: 'report',
    key: 'report',
    component: Three,
    meta: {
      title: '数据报表'
    },
    children: [
      {
        path: 'resultsReport',
        name: 'resultsReport',
        key: 'resultsReport',
        component: () => import('@/views/data/report/resultsReport/list'),
        meta: {
          title: '业绩报表'
        }
      }, {
        path: 'operateResults',
        name: 'operateResults',
        key: 'operateResults',
        hidden: true,
        component: () => import('@/views/data/report/resultsReport/operatelist'),
        meta: {
          title: '运营业绩明细'
        }
      }, {
        path: 'agentResults',
        name: 'agentResults',
        key: 'agentResults',
        hidden: true,
        component: () => import('@/views/data/report/resultsReport/agentlist'),
        meta: {
          title: '代理业绩明细'
        }
      }, {
        path: 'storeResults',
        name: 'storeResults',
        key: 'storeResults',
        hidden: true,
        component: () => import('@/views/data/report/resultsReport/storelist'),
        meta: {
          title: '门店业绩明细'
        }
      }, {
        path: 'courseReport',
        name: 'courseReport',
        key: 'courseReport',
        component: () => import('@/views/finance/refund/courseRefund/list'),
        meta: {
          title: '课程报表'
        }
      }
    ]
  }]
}

export default data
